package dto;

import java.io.Serializable;
import java.util.ArrayList;

public class DTOUser implements Serializable {

	/**
	 * @param args
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String name;
	private String password;
	private String telephone;
	private String email;
	private String type;
	private Boolean selected;

	private ArrayList<String> allUsers = new ArrayList<String>(); // list with
																	// all user
																	// names

	public DTOUser() {
	}

	public DTOUser(int id, String name, String password) {
		this.id = id;
		this.name = name;
		this.password = password;
	}

	public DTOUser(int id, String name, String password, String telephone,
			String email, String type) {
		super();
		this.id = id;
		this.name = name;
		this.password = password;
		this.telephone = telephone;
		this.email = email;
		this.type = type;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public ArrayList<String> getAllUsers() {
		return allUsers;
	}

	public void setAllUsers(ArrayList<String> allUsers) {
		this.allUsers = allUsers;
	}

	@Override
	public String toString() {

		return "DTOUser [id=" + id + ", name=" + name + ", password="
				+ password + ", telephone=" + telephone + ", email=" + email
				+ ", type=" + type + ", allUsers=" + allUsers + "]";
	}

	/**
	 * @author ieneir
	 * @return the selected
	 */
	public Boolean getSelected() {
		return selected;
	}

	/**
	 * @author ieneir
	 * @param selected
	 *            the selected to set
	 */
	public void setSelected(Boolean selected) {
		this.selected = selected;
	}

}
